package com.gp.tms.pojo;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 交接单表
 * </p>
 *
 * @author team
 * @since 2023-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="HandoverList对象", description="交接单表")
public class HandoverList implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "交接单编号")
    @TableId(value = "handover_id", type = IdType.ASSIGN_ID)
    private Long handoverId;

    @ApiModelProperty(value = "车辆编号")
    private Integer vehicleId;

    @ApiModelProperty(value = "订单编号")
    private Long orderId;

    @ApiModelProperty(value = "地址薄编号")
    private Integer addressId;

    @ApiModelProperty(value = "移交方（引用站点表主键）")
    private Integer transferParty;

    @ApiModelProperty(value = "接收方（交接单类型为运输类型时为站点表主键引用，为派发类型时为订单中收件人信息地址薄表主键的引用）")
    private Integer receiver;

    @ApiModelProperty(value = "移交日期")
    private Date handoverDate;

    @ApiModelProperty(value = "接收日期")
    private Date receivedDate;

    @ApiModelProperty(value = "状态，0-新建，1-运输中，2-交接完成")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "交接单类型（1-运输交接单，2-派发交接单）")
    private Integer handoverType;


}
